﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Data;

namespace hostal
{
    public partial class DetalleHabitacion : Form
    {
        public DetalleHabitacion(string hab)
        {
            InitializeComponent();
            habitacionDataAccess hDal = new habitacionDataAccess();
            DataTable temp = hDal.buscarHabitacionNum(hab);
            this.label4.Text = temp.Rows[0]["numero"].ToString();
            this.label5.Text = temp.Rows[0]["tipo"].ToString();
            this.label6.Text = temp.Rows[0]["capacidad"].ToString();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void DetalleHabitacion_Load(object sender, EventArgs e)
        {

        }

     
    }
}
